
// #ifndef VUE3
import Vue from 'vue'
import App from './App'
Vue.config.productionTip = false
App.mpType = 'app'


const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import pinia from './stores'
import App from './App.vue'
export function createApp() {
  const app = createSSRApp(App)
  app.use(pinia)
  app.config.globalProperties.timeStr = '12345';
  app.config.globalProperties.$myGlobalMethod = function() {
    console.log('这是一个全局方法');
  };
  if (process.env.NODE_ENV === 'development') {
    console.log('Development mode');
  } else {
    console.log = () => {}; // 生产环境禁用 console.log
  }
  return {
    app
  }
}
// #endif